using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeostatisticalAnalystTools._WorkingwithGeostatisticalLayers
{
    /// <summary>
    /// <para>Set Model Parameter</para>
    /// <para>Sets parameter values in an existing geostatistical model source.</para>
    /// <para>设置现有地统计模型源中的参数值。</para>
    /// </summary>    
    [DisplayName("Set Model Parameter")]
    public class GASetModelParameter : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GASetModelParameter()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_ga_model_source">
        /// <para>Input geostatistical model source</para>
        /// <para>The geostatistical model source to be analyzed.</para>
        /// <para>要分析的地统计模型源。</para>
        /// </param>
        /// <param name="_model_param_xpath">
        /// <para>Parameter XML Path</para>
        /// <para>XML path to the required model parameter.</para>
        /// <para>所需模型参数的 XML 路径。</para>
        /// </param>
        /// <param name="_in_param_value">
        /// <para>Parameter value</para>
        /// <para>Value for the parameter defined by the XML path.</para>
        /// <para>XML 路径定义的参数的值。</para>
        /// </param>
        /// <param name="_out_ga_model">
        /// <para>Output model</para>
        /// <para>Geostatistical model created with the parameter value defined in the XML path.</para>
        /// <para>使用 XML 路径中定义的参数值创建的地统计模型。</para>
        /// </param>
        public GASetModelParameter(object _in_ga_model_source, object _model_param_xpath, object _in_param_value, object _out_ga_model)
        {
            this._in_ga_model_source = _in_ga_model_source;
            this._model_param_xpath = _model_param_xpath;
            this._in_param_value = _in_param_value;
            this._out_ga_model = _out_ga_model;
        }
        public override string ToolboxName => "Geostatistical Analyst Tools";

        public override string ToolName => "Set Model Parameter";

        public override string CallName => "ga.GASetModelParameter";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_ga_model_source, _model_param_xpath, _in_param_value, _out_ga_model];

        /// <summary>
        /// <para>Input geostatistical model source</para>
        /// <para>The geostatistical model source to be analyzed.</para>
        /// <para>要分析的地统计模型源。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input geostatistical model source")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_ga_model_source { get; set; }


        /// <summary>
        /// <para>Parameter XML Path</para>
        /// <para>XML path to the required model parameter.</para>
        /// <para>所需模型参数的 XML 路径。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Parameter XML Path")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _model_param_xpath { get; set; }


        /// <summary>
        /// <para>Parameter value</para>
        /// <para>Value for the parameter defined by the XML path.</para>
        /// <para>XML 路径定义的参数的值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Parameter value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_param_value { get; set; }


        /// <summary>
        /// <para>Output model</para>
        /// <para>Geostatistical model created with the parameter value defined in the XML path.</para>
        /// <para>使用 XML 路径中定义的参数值创建的地统计模型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output model")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_ga_model { get; set; }


        public GASetModelParameter SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}